from django.db import models


# from luffyapi.until.models import BaseM
from until.models import BaseM

class Corse(BaseM,models.Model):
    name = models.CharField(max_length=256, verbose_name='课程名字')
    img = models.ImageField(upload_to='cor_img', verbose_name='课程图片')
    link = models.CharField(max_length=256, verbose_name='课程链接')

    class Meta:
        db_table = 'Corse'
        verbose_name = "课程"
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name

